package com.blb.service;

import com.blb.pojo.Employee;

import java.util.List;

public interface EmployeeService {

    //select --> find/get delete --> delete/remove update --> update insert --> add/save
    List<Employee> findAll();

    List<Employee> findEmployeesLikeName(String name);

    /**
     * 根据id查询员工
     * @param id
     * @return
     */
    Employee findById(Long id);

    /**
     * 更新员工
     * @param employee
     */
    void updateEmployee(Employee employee);
}
